package edu.ar.bases.dvdstore.domainmodel.repositories;
import java.util.Collection;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import edu.ar.bases.dvdstore.domainmodel.entities.Devolucion;
import edu.ar.bases.dvdstore.domainmodel.repositories.interfaces.IDevolucionRepository;

public class DevolucionRepository extends HibernateDaoSupport implements IDevolucionRepository{

	public DevolucionRepository() {
		super();
	}

	public Collection<Devolucion> findAll()
	{
		return this.getHibernateTemplate().loadAll(Devolucion.class);
	}

	
	public void save(Devolucion entity)
	{
		this.getHibernateTemplate().save(entity);
	}
	
	
	
	
	public Devolucion findById(Integer eventoID)
	{
		return (Devolucion)this.getHibernateTemplate().get(Devolucion.class, eventoID);
	}
}
